<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>OTA测试详解</title>
</head>
<body>
    <div style="margin-left: 40px;">
        <h1>OTA测试</h1>
        <h2 style="margin-left:20px">概述</h2>
        <span style="margin-left:20px">OTA测试即版本升级测试，通过sql脚本控制版本的升级</span>
        <h2 style="margin-left:20px">OTA测试类型</h2>
        <ul style="margin-left:20px">
            <li>非强制升级</li>
            <li>强制升级</li>
            <li>跨版本升级</li>
        </ul>
        <h2 style="margin-left:20px">OTA测试流程</h2>
        <IMG src="/AndroidTest/static/images/content/OTA1.png" style="margin-left:20px">
        <h2 style="margin-left:20px">OTA升级原理</h2>
        <IMG src="/AndroidTest/static/images/content/OTA2.png" style="margin-left:20px">
        <h2 style="margin-left:20px">OTA升级脚本</h2>
        <span style="margin-left:20px">INSERT INTO `danlu_cd_database`.`t_app_version_management` (`id`, `app_download_address`, `version`,`is_force_upgrade`, `os_code`, `os_name`, `equipment_code`, `equipment_name`,</span></br>
        <span style="margin-left:20px">`created_timestamp`, `app_type`)VALUES('ca1692101f40477c9122dc2zddand123', 'http://asset.danlu.com/mobile/test/android/danlu_store_v1.2.3.apk','1.2.3', '0', '0', 'android', '0', 'phone','2017-12-02 18:00:36', '0');</span></br></br>
        <IMG src="/AndroidTest/static/images/content/OTA3.png" style="margin-left:20px"><br>
        <span style="margin-left:20px;color:red;font-weight: 600">注意：</span>
        <ul style="margin-left:20px;">
            <li><span>Android需填写app_download_address，ios不需要填写；</span></li>
            <li><span>APP下载地址app_download_address测试环境为http://asset.danlu.com/mobile/test/android/danlu_store_v1.2.3.apk；
                生产环境为http://asset.danlu.com/mobile/client/android/danlu_store_v1.2.3.apk</span></li>
            <li><span>可利用升级脚本在线生成工具UpgradeSql生成脚本</span></li>
        </ul>
        <h2 style="margin-left:20px">OTA升级测试场景</h2>
        <IMG src="/AndroidTest/static/images/content/OTA4.png" style="margin-left:20px">
    </div>
    <div>
        <br>
        <br>
        <br>
        <br>
        <br>
    </div>

</body>
</html>